using System.Configuration;
using System.Xml;
using DailyReport.Core.Data.Dao.DaoFactory;
using log4net.Config;

namespace DailyReport.Core.Util
{
    public class ConfigurationManager
    {
        public static void initialize()
        {
            XmlConfigurator.Configure();
            ConnectionManager.initialize();
            XmlNode node = ConfigurationSettings.GetConfig("dailyreport-configuration") as XmlNode;
            
            DaoFactory.initialize(node);
            
        }
    }
}